#include <WinTen.h>
#include <Windows.h>
#include <ClipApi.h>


CLIPPER WNDBOXIN()
{
   HDC hDC = _parni( 1 );
   RECT rct;
   HPEN hPen, hOldPen;

   rct.top    = _parni( 2, 1 );
   rct.left   = _parni( 2, 2 );
   rct.bottom = _parni( 2, 3 );
   rct.right  = _parni( 2, 4 );

   hPen    = CreatePen( PS_SOLID, 1, RGB( 128, 128, 128 ) );
   hOldPen = SelectObject( hDC, hPen );
   MoveTo( hDC, rct.left, rct.top );
   LineTo( hDC, rct.right, rct.top );
   MoveTo( hDC, rct.left, rct.top );
   LineTo( hDC, rct.left, rct.bottom );
   DeleteObject( hPen );
   hPen    = GetStockObject( WHITE_PEN );
   SelectObject( hDC, hPen );
   MoveTo( hDC, rct.left, rct.bottom );
   LineTo( hDC, rct.right, rct.bottom );
   LineTo( hDC, rct.right, rct.top - 1 );
   SelectObject( hDC, hOldPen );
}
